package util

import "time"

func Retry(function func(params ...interface{}) bool, delay int, params ...interface{}) bool {
	for {
		result := function(params...)
		if result {
			return result
		}
		time.Sleep(time.Duration(delay) * time.Second)
	}
}
